<?php

namespace Mssae\SeoBundle\Entity;

use Mssae\UserBundle\MssaeUserBundle ;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert ;

/**
 * Mssae\SeoBundle\Entity\ProjetAnnuaire
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="Mssae\SeoBundle\Entity\ProjetAnnuaireRepository")
 */
class ProjetAnnuaire
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var text $commentaire
     *
     * @ORM\Column(name="commentaire", type="text")
     * @Assert\NotBlank()
     */
    private $commentaire;

    /**
     * @var datetime $create_at
     *
     * @ORM\Column(name="create_at", type="datetime")
     * @Assert\DateTime()
     */
    private $create_at;

    /**
     * @var datetime $update_at
     *
     * @ORM\Column(name="update_at", type="datetime")
     * @Assert\DateTime()
     */
    private $update_at;

    /**
     * @var smallint $statut
     *
     * @ORM\Column(name="statut", type="smallint")
     * @Assert\Max(2)
     * @Assert\Max(0)
     * 
     */
    private $statut;
    
    /**
     * @ORM\ManyToOne(targetEntity="Projet")
     */
    private $projet ;
   
    /**
     * @ORM\ManyToOne(targetEntity="Annuaire")
     */
    private $annuaire ;
    
    /**
     * @ORM\ManyToOne(targetEntity="Mssae\UserBundle\Entity\User")
     */
    private $user ;

    public function __construct()
    {
        $this->create_at = new \DateTime();
        $this->update_at = new \DateTime();
        $this->statut = 0 ;
    }

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set commentaire
     *
     * @param text $commentaire
     */
    public function setCommentaire($commentaire)
    {
        $this->commentaire = $commentaire;
    }

    /**
     * Get commentaire
     *
     * @return text 
     */
    public function getCommentaire()
    {
        return $this->commentaire;
    }

    /**
     * Set create_at
     *
     * @param datetime $createAt
     */
    public function setCreateAt($createAt)
    {
        $this->create_at = $createAt;
    }

    /**
     * Get create_at
     *
     * @return datetime 
     */
    public function getCreateAt()
    {
        return $this->create_at;
    }

    /**
     * Set update_at
     *
     * @param datetime $updateAt
     */
    public function setUpdateAt($updateAt)
    {
        $this->update_at = $updateAt;
    }

    /**
     * Get update_at
     *
     * @return datetime 
     */
    public function getUpdateAt()
    {
        return $this->update_at;
    }

    /**
     * Set statut
     *
     * @param smallint $statut
     */
    public function setStatut($statut)
    {
        $this->statut = $statut;
    }

    /**
     * Get statut
     *
     * @return smallint 
     */
    public function getStatut()
    {
        return $this->statut;
    }

    /**
     * Set projet
     *
     * @param Mssae\SeoBundle\Entity\Projet $projet
     */
    public function setProjet(\Mssae\SeoBundle\Entity\Projet $projet)
    {
        $this->projet = $projet;
    }

    /**
     * Get projet
     *
     * @return Mssae\SeoBundle\Entity\Projet 
     */
    public function getProjet()
    {
        return $this->projet;
    }

    /**
     * Set annuaire
     *
     * @param Mssae\SeoBundle\Entity\Annuaire $annuaire
     */
    public function setAnnuaire(\Mssae\SeoBundle\Entity\Annuaire $annuaire)
    {
        $this->annuaire = $annuaire;
    }

    /**
     * Get annuaire
     *
     * @return Mssae\SeoBundle\Entity\Annuaire 
     */
    public function getAnnuaire()
    {
        return $this->annuaire;
    }
    /**
     * Set user
     *
     * @param Mssae\UserBundle\Entity\User $user
     */
    public function setUser(\Mssae\UserBundle\Entity\User $user)
    {
        $this->user = $user;
    }

    /**
     * Get user
     *
     * @return Mssae\UserBundle\Entity\User 
     */
    public function getUser()
    {
        return $this->user;
    }
}